truncateHead

fun truncateHead(s: String, limit: Int, prefix: String): String

Returns a string that is guaranteed to be withing 'limit' characters by truncating the beginning of the string, if necessary.